Account: xyz-peter.smith from 9310:
Create Account and User Subject From Given Subject Uuid and
Name| name | value |
|---|---|
| subjectName | xyz-peter.smith |
| name | value |
|---|---|
| personFamilyName | Smith |
| personGivenName | Peter |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"person" : {
"uuid" : "bfecf1fc-b92b-47ae-aa84-9d52b57457ef", // Person: Peter Smith
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"subject" : {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"name" : "xyz-peter.smith",
"type" : "USER"
},
"globalUid" : 21011,
"globalGid" : 21011
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/persons/bfecf1fc-b92b-47ae-aa84-9d52b57457ef" // personUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
{
"uuid" : "bfecf1fc-b92b-47ae-aa84-9d52b57457ef", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
}
generated on 2026-07-17 01:42:20 for branch